package com.xc.h05.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName question
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question implements Serializable {
    /**
     * 
     */
    private int id;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    /**
     * 
     */
    private long userId;
    private User user;
    private String nickName;
    private int answerCount;
//    private static final long serialVersionUID = 1L;
}